//
//  LBButton.h
//  BusinessCloud
//
//  Created by Apple on 2017/7/20.
//  Copyright © 2017年 yxk. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_OPTIONS(NSUInteger, YFUIButtonType) {
    YFUIButtonTypeDefault     = 0,
    YFUIButtonTypeImageRight,
    YFUIButtonTypeImageUp,
    YFUIButtonTypeImageDown
};
@interface LBButton : UIButton

/**
 定义不同类型下的按钮样式
 
 @param type 类型
 @return
 */
+(instancetype)buttonWithCoutomType:(YFUIButtonType)type;

/**
 对象方法
 
 @param type
 @return
 */
- (instancetype)initWithCoutomType:(YFUIButtonType)type;

/**
 定义图片和文字之间间隙 默认为 8.0
 */
@property (nonatomic,assign) CGFloat margin;

/**
 根据按钮的状态动态改变它的背景颜色
 
 @param color 颜色
 @param state 状态
 */
- (void)setBackgroudColor:(UIColor *)color forState:(UIControlState)state;


@end
